{% extends "base.html" %}{% block page %}{% if administratorview %}
    <style type="text/css">
    body {
      background-color: #ffefef !important;
    }
    </style>{% endif %}{% if replythread %}
    &#91;<a href="/{% if administratorview %}?admin{% endif %}">Return</a>&#93;<div class="replymode">Posting mode: Reply</div>{% endif %}
    <div class="postarea">
      <form name="postform" id="postform" action="/post" method="post" enctype="multipart/form-data">{% if replythread %}
      <input type="hidden" name="parent" value="{{ replythread }}">{% endif %}
      <input type="hidden" name="MAX_FILE_SIZE" value="{{ MAX_FILE_SIZE }}">
      <table class="postform">
        <tbody>{% if not forced_anonymous %}
          <tr>
            <td class="postblock">
              Name
            </td>
            <td>
              <input type="text" name="name" size="19" maxlength="75" accesskey="n">
              <input type="checkbox" name="anonymous" id="anonymous" onclick="javascript:anonymouscheckbox(this);"> <label for="anonymous">Display as Anonymous</label>
            </td>
          </tr>{% endif %}
          <tr>
            <td class="postblock">
              Email
            </td>
            <td>
              <input type="text" name="email" size="{% if forced_anonymous %}{% if disable_subject %}28{% else %}19{% endif %}{% else %}19{% endif %}" maxlength="75" accesskey="e">{% if disable_subject %}
              <input type="submit" value="Submit" accesskey="z">{% endif %}{% if administratorview %}
              <input type="checkbox" name="administrator" id="administrator"> <label for="administrator">Display as Administrator</label>{% endif %}
            </td>
          </tr>{% if not disable_subject %}
          <tr>
            <td class="postblock">
              Subject
            </td>
            <td>
              <input type="text" name="subject" size="40" maxlength="75" accesskey="s">
              <input type="submit" value="Submit" accesskey="z">
            </td>
          </tr>{% endif %}
          <tr>
            <td class="postblock">
              Message
            </td>
            <td>
              <textarea name="message" cols="48" rows="4" accesskey="m"></textarea>
            </td>
          </tr>
          <tr>
            <td class="postblock">
              File<a href="?admin" style="text-decoration: none;" accesskey="x">&nbsp;</a>
            </td>
            <td>
              <input type="file" name="file" size="35" accesskey="f">
            </td>
          </tr>
          <tr>
            <td class="postblock">
              Options
            </td>
            <td>
              <input type="checkbox" name="aa" id="aa"><label for="aa">Fixed width font</label>
            </td>
          </tr>
          <tr>
            <td class="postblock">
              Password
            </td>
            <td>
              <input type="password" name="password" size="8" accesskey="p">&nbsp;(for post and file deletion)
            </td>
          </tr>
          <tr>
            <td colspan="2" class="rules">
              <ul style="margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0;">
                <li>Supported file types are: GIF, JPG, PNG</li>
                <li>Maximum file size allowed is {{ maxsize_display }}.</li>
                <li>Images greater than {{ maxdimensions}}x{{ maxdimensions}} pixels will be thumbnailed.</li>
                <li><a href="http://internap.dl.sourceforge.net/sourceforge/monafont/monafont-ttf-2.90.zip">Mona font</a> is recommended for the best looking text art.</li>
                <li><a href="http://code.google.com/p/pyib/">Code page</a>, <a href="http://groups.google.com/group/pyib-discuss">Discussion group</a>, <a href="http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMYrwcM">Applications Gallery entry</a></li>
                <li><a href="/search">Search posts</a>, <a href="/catalog.html">View catalog</a></li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>
      </form>
    </div>
    <script type="text/javascript"><!--
      set_inputs("postform");
    //--></script>
    <hr>
    <form id="delform" action="/delete" method="post">{% for thread in threads %}{% for post in thread.posts %}{% if post.parentid %}
    <table>
    <tbody>
    <tr>
    <td class="doubledash">
      &gt;&gt;
    </td>
    <td class="reply" id="reply{{ post.postid }}">{% else %}{% if post.image %}
    <span class="filesize">File: <a href="/src/{{ post.key }}/{{ post.image_filename }}" onclick="javascript:expandimg('{{ post.postid }}', '/src/{{ post.key }}/{{ post.image_filename }}', '/thumb/{{ post.key }}/{{ post.thumb_filename }}', '{{ post.image_width }}', '{{ post.image_height }}', '{{ post.thumb_width }}', '{{ post.thumb_height }}');return false;">{{ post.image_filename }}</a>-({{ post.image_size_formatted }}, {{ post.image_width }}x{{ post.image_height }}{% if replythread %}, {{ post.image_original }}{% endif %})</span>
    <br>
    <a target="_blank" href="/src/{{ post.key }}/{{ post.image_filename }}">
      <span id="thumb{{ post.postid }}"><img src="/thumb/{{ post.key }}/{{ post.thumb_filename }}" alt="{{ post.postid }}" class="thumb" width="{{ post.thumb_width }}" height="{{ post.thumb_height }}"></span>
    </a>{% endif %}{% endif %}{% if post.deleted %}
    <span class="omittedposts">No. {{ post.postid }} has been deleted.</span>{% else %}
    <a name="{{ post.postid }}"></a>
    <a name="{{ post.key }}"></a>
    <label>
      <input type="checkbox" name="delete" value="{{ post.key }}">
      {{ post.nameblock }}
    </label>
    <span class="reflink">
      <a href="{% if replythread %}#{{ post.postid }}" onclick="javascript:highlight('{{ post.postid }}');{% else %}/res/{{ thread.op_postid }}.html#{{ post.postid }}{% endif %}">No.</a>
      {% if replythread %}<a href="#i{{ post.postid }}" onclick="insert('>>{{ post.postid }}');">{% else %}<a href="/res/{{ thread.op_postid }}.html#i{{ post.postid }}">{% endif %}{{ post.postid }}</a>
    </span>{% if post.parentid %}{% if post.image %}
    <br>
    <span class="filesize">File: <a href="/src/{{ post.key }}/{{ post.image_filename }}" onclick="javascript:expandimg('{{ post.postid }}', '/src/{{ post.key }}/{{ post.image_filename }}', '/thumb/{{ post.key }}/{{ post.thumb_filename }}', '{{ post.image_width }}', '{{ post.image_height }}', '{{ post.thumb_width }}', '{{ post.thumb_height }}');return false;">{{ post.image_filename }}</a>-({{ post.image_size_formatted }}, {{ post.image_width }}x{{ post.image_height }}{% if replythread %}, {{ post.image_original }}{% endif %})</span>
    <br>
    <a target="_blank" href="/src/{{ post.key }}/{{ post.image_filename }}">
      <span id="thumb{{ post.postid }}"><img src="/thumb/{{ post.key }}/{{ post.thumb_filename }}" alt="{{ post.postid }}" class="thumb" width="{{ post.thumb_width }}" height="{{ post.thumb_height }}"></span>
    </a>{% endif %}{% else %}{% if not replythread %}
    &nbsp;[<a href="/res/{{ thread.op_postid }}.html{% if administratorview %}?admin{% endif %}">Reply</a>]{% endif %}{% endif %}{% if administratorview %}
     [<a href="/admin/delete/{{ post.key }}">D</a> <a href="/admin/ban/{{ post.key }}">B</a>]{% endif %}{% if post.aa %}
    <blockquote class="aa">{{ post.message }}</blockquote>{% else %}
    <blockquote>
    {{ post.message }}
    </blockquote>{% endif %}{% endif %}{% if not post.parentid %}{% if not replythread %}{% if thread.replieshidden %}
    <span class="omittedposts">
      {{ thread.replieshidden }} post{{ thread.replieshidden|pluralize }} omitted.  Click Reply to view.
    </span>{% endif %}{% endif %}{% else %}
    </td>
    </tr>
    </tbody>
    </table>{% endif %}{% endfor %}
    <br clear="left">
    <hr>{% endfor %}
    <table class="userdelete">
    <tbody>
    <tr>
    <td>
    Delete Post [<input type="checkbox" name="imageonly" id="imageonly" checked><label for="imageonly">Image Only</label>]<br>Password <input type="password" name="password" size="8">&nbsp;<input name="deletepost" value="Delete" type="submit">
    </td>
    </tr>
    </tbody>
    </table>
    </form>
    <script type="text/javascript"><!--
      set_delpass("delform");
    //--></script>{% if not replythread %}
    <table border="1">
      <tbody>
        <tr>
          {{ pages }}
        </tr>
      </tbody>
    </table>{% endif %}{% endblock %}